package com.tjh.gulimall.member.feign;

import com.tjh.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * • @Description: TODO
 * • @author  : tjh
 * • @Date 2022-9-28 19:30
 */
@Component
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 远程调用，获取用户的所有优惠券
     * @return
     */
    @RequestMapping("/coupon/coupon/member/list")
    R memberCoupons();
}
